package sina;

import java.util.LinkedList;
import java.util.List;

public class Data {
    public int getData(){
        return 1;
    }

    public static void main(String[] args) {
        List<Data> list=new LinkedList<>();
        new Thread(new A(list)).start();
        new Thread(new B(list,5)).start();
    }
}
